package org.example;

import java.util.Scanner;

/**
 * 作者:TC
 * 时间:2023/11/30 10:30
 * 描述:没有bug
 */
public class TriangleTest {
    public static void main(String[] args) {
        int a,b,c;
        boolean tt;
        Scanner Sc=new Scanner(System.in);
        System.out.println("请输入a,c,c三条边");
        a=Sc.nextInt();
        b=Sc.nextInt();
        c=Sc.nextInt();
        System.out.println(a+b+c);
        Triangle tri=new Triangle(a,b,c);
        tt=tri.isTri(a,b,c);
        System.out.println(tt);
        if(tt==false){
            System.out.println("这三条边不能构成三角形");
        }else{
            tri.C(a,b,c);
            tri.S(a,b,c);
        }

    }
}
